package com.ljx.qqpro.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ljx.qqpro.common.utils.PageUtil;
import com.ljx.qqpro.common.utils.Query;

import com.ljx.qqpro.dao.UserContactsDao;
import com.ljx.qqpro.entity.UserContactsEntity;
import com.ljx.qqpro.service.UserContactsService;


@Service("userContactsService")
public class UserContactsServiceImpl extends ServiceImpl<UserContactsDao, UserContactsEntity> implements UserContactsService {

    @Override
    public PageUtil queryPage(Map<String, Object> params) {
        IPage<UserContactsEntity> page = this.page(
                new Query<UserContactsEntity>().getPage(params),
                new QueryWrapper<UserContactsEntity>()
        );

        return new PageUtil(page);
    }

}